﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>设置</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <link href="css/Set.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script src="js/ajax-data.js" type="text/javascript"></script>
    <script src="js/dialog.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#Exitlogin").click(function () {
                delCookie("token");
                delCookie("userid");
                delCookie("logintype");
                delCookie("parentid");
                delCookie("name");
                delCookie("agentid");
                window.location.href = "login.html";
            });
            version();
            ShowFL();
        });

        function pass() {
            if (getCookie("logintype") == "1")
                window.location.href = 'password.html';
            else
                Alert("不允许修改密码");
        }
        function login() {
            if (!islogin()) {
                window.location.href = 'login.html';
                return false;
            }
            return true;
        }

        function version() {
            var ua = navigator.userAgent.toLocaleLowerCase();
            if (ua.indexOf("wjx") > -1) {
                $(".version").css("display", "");
                if (ua.indexOf("iphone") > -1) {
                    var s = ua.substr(ua.indexOf("wjx") + 3);
                    if (s == "")
                        $("#version").html("1.0");  //UA旧版本
                    else
                        $("#version").html(s);
                }
                else {
                    var s = ua.substr(ua.indexOf("wjx"));
                    var s2 = s.substr(3, s.indexOf("/") - 3);
                    if (s2 == "")
                        $("#version").html("1.0");  //UA旧版本
                    else
                        $("#version").html(s2);
                }
            }
        }

        //客户列表
        function ShowFL(page) {
            if (!islogin()) { return; }
            AjaxStart("ajax/fc_record.ashx?getclientlist", "&page_index=" + page, function (data) {
                if(data.item==null) return;
                if (data.item.itemCount > 0)
                    $(".fanli").css("display", "");
            });
        }
    </script>
</head>
<body>
    <div class="wamtop">
        <div class="topleft" onclick="window.location.href='Personal.html'">
            <img src="img/14.png" />
        </div>
        <div class="topcententxt">
            设置</div>
    </div>

    <div class="middle fanli" style="display:none" onclick="if(login())window.location.href='fl_list.html'">
        <div class="word1">
            经销管理</div>
        <div class="advetopleft1">
            <img src="img/45.png"></div>
    </div>

    <div class="middle" onclick="if(login())window.location.href='RefernID.html'">
        <div class="word1">
            推荐人ID</div>
        <div class="advetopleft1">
            <img src="img/45.png"></div>
    </div>
    <div class="middle" onclick="if(login())window.location.href='ParentID.html'">
        <div class="word1">
            上级ID</div>
        <div class="advetopleft1">
            <img src="img/45.png"></div>
    </div>
    <!--<div class="middle" onclick="if(login())window.location.href='articlelogo.html'">
        <div class="word1">
            文章封面图片</div>
        <div class="advetopleft1">
            <img src="img/45.png"></div>
    </div>-->
    <div class="middle" onclick="pass()">
        <div class="word1">
            修改密码</div>
        <div class="advetopleft1">
            <img src="img/45.png"></div>
    </div>
    <div class="middle" onclick="window.location.href='about/about.html'">
        <div class="word1">
            功能介绍</div>
        <div class="advetopleft1">
            <img src="img/45.png"></div>
    </div>
    <div class="middle" onclick="if(login())window.location.href='feedback.html'">
        <div class="word1">
            意见反馈</div>
        <div class="advetopleft1">
            <img src="img/45.png"></div>
    </div>
    <div class="middle version" style="color: #666; line-height: 31px; display: none;"
        onclick="version()">
        <div class="word1">
            当前版本</div>
        <div class="advetopleft1">
            <span id="version">1.0</span></div>
    </div>
    <div class="box2" id="Exitlogin" style="display: none">
        <div class="input2">
            退出登录</div>
    </div>
</body>
</html>
